package com.heima;

public class Homework01 {
    public static void main(String[] args) {
        getDC("123123");
        getDC("123321");
        getDC("上海自来水来自海上");
    }
    public static void getDC(String a) {
        StringBuilder s = new StringBuilder(a);
        String ss = s.reverse().toString();
        if (a.equals(ss)) {
            System.out.println("对称");
        } else {
            System.out.println("非对称");
        }
    }
}
